package cn.fsd.feignclients;

import cn.fsd.query.substation.WorkloadBean;
import cn.fsd.query.substation.WorkloadQuery;
import cn.fsd.vo.PageBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

// TODO: 2023/7/13 需要改成使用nacos
@FeignClient(value = "substation-server",url = "localhost:1050")
public interface SubStationFeignClient {
  @PostMapping("/task/queryWorkload")
  PageBean<WorkloadBean> queryWorkload(@RequestBody WorkloadQuery query);
}
